<!DOCTYPE html>
<html class="writer-html5" lang="en" >
<head>
    <meta charset="utf-8" />
    <meta http-equiv="X-UA-Compatible" content="IE=edge" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
      <link rel="shortcut icon" href="../../../img/favicon.ico" />
    <title>重要概念 - ZX's MkDocs</title>
    <link rel="stylesheet" href="../../../css/theme.css" />
    <link rel="stylesheet" href="../../../css/theme_extra.css" />
        <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/10.5.0/styles/github.min.css" />
    
      <script>
        // Current page data
        var mkdocs_page_name = "\u91cd\u8981\u6982\u5ff5";
        var mkdocs_page_input_path = "project\\cpp\\CPPoutline.md";
        var mkdocs_page_url = null;
      </script>
    
    <script src="../../../js/jquery-3.6.0.min.js" defer></script>
    <!--[if lt IE 9]>
      <script src="../../../js/html5shiv.min.js"></script>
    <![endif]-->
      <script src="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/10.5.0/highlight.min.js"></script>
      <script>hljs.initHighlightingOnLoad();</script> 
</head>

<body class="wy-body-for-nav" role="document">

  <div class="wy-grid-for-nav">
    <nav data-toggle="wy-nav-shift" class="wy-nav-side stickynav">
    <div class="wy-side-scroll">
      <div class="wy-side-nav-search">
          <a href="../../.." class="icon icon-home"> ZX's MkDocs
        </a><div role="search">
  <form id ="rtd-search-form" class="wy-form" action="../../../search.html" method="get">
      <input type="text" name="q" placeholder="Search docs" title="Type search term here" />
  </form>
</div>
      </div>

      <div class="wy-menu wy-menu-vertical" data-spy="affix" role="navigation" aria-label="Navigation menu">
              <ul>
                <li class="toctree-l1"><a class="reference internal" href="../../..">主页</a>
                </li>
              </ul>
              <p class="caption"><span class="caption-text">主线</span></p>
              <ul>
                  <li class="toctree-l1"><a class="reference internal" href="#">行波马达</a>
    <ul>
                <li class="toctree-l2"><a class="reference internal" href="../../%E8%A1%8C%E6%B3%A2%E9%A9%AC%E8%BE%BE/SPI/">SPI</a>
                </li>
    </ul>
                  </li>
              </ul>
              <p class="caption"><span class="caption-text">支线</span></p>
              <ul class="current">
                  <li class="toctree-l1 current"><a class="reference internal current" href="#">cpp</a>
    <ul class="current">
                <li class="toctree-l2"><a class="reference internal" href="../01demo/">基本语法</a>
                </li>
                <li class="toctree-l2 current"><a class="reference internal current" href="./">重要概念</a>
    <ul class="current">
    </ul>
                </li>
    </ul>
                  </li>
                  <li class="toctree-l1"><a class="reference internal" href="../../%E6%93%8D%E4%BD%9C%E7%B3%BB%E7%BB%9F/OS/">os</a>
                  </li>
              </ul>
      </div>
    </div>
    </nav>

    <section data-toggle="wy-nav-shift" class="wy-nav-content-wrap">
      <nav class="wy-nav-top" role="navigation" aria-label="Mobile navigation menu">
          <i data-toggle="wy-nav-top" class="fa fa-bars"></i>
          <a href="../../..">ZX's MkDocs</a>
        
      </nav>
      <div class="wy-nav-content">
        <div class="rst-content"><div role="navigation" aria-label="breadcrumbs navigation">
  <ul class="wy-breadcrumbs">
    <li><a href="../../.." class="icon icon-home" alt="Docs"></a> &raquo;</li>
          <li>支线 &raquo;</li>
          <li>cpp &raquo;</li>
      <li>重要概念</li>
    <li class="wy-breadcrumbs-aside">
    </li>
  </ul>
  <hr/>
</div>
          <div role="main" class="document" itemscope="itemscope" itemtype="http://schema.org/Article">
            <div class="section" itemprop="articleBody">
              
                <h2 id="_1">面向对象程序设计</h2>
<p>C++ 完全支持面向对象的程序设计，包括面向对象开发的四大特性：</p>
<p>封装（Encapsulation）：封装是将数据和方法组合在一起，对外部隐藏实现细节，只公开对外提供的接口。这样可以提高安全性、可靠性和灵活性。</p>
<p>继承（Inheritance）：继承是从已有类中派生出新类，新类具有已有类的属性和方法，并且可以扩展或修改这些属性和方法。这样可以提高代码的复用性和可扩展性。</p>
<p>多态（Polymorphism）：多态是指同一种操作作用于不同的对象，可以有不同的解释和实现。它可以通过接口或继承实现，可以提高代码的灵活性和可读性。</p>
<p>抽象（Abstraction）：抽象是从具体的实例中提取共同的特征，形成抽象类或接口，以便于代码的复用和扩展。抽象类和接口可以让程序员专注于高层次的设计和业务逻辑，而不必关注底层的实现细节。</p>
<h2 id="c">C++中重要概念的理解</h2>
<p>？？？
类 狗 
对象 小白（一只具体的狗）</p>
<p>行为
方法 可以在方法中写入操作和逻辑
即时变量 每个对象都有即时变量 对象的状态由即时变量决定</p>
<p>继承
调用
多态</p>
<h2 id="_2">数据类型转换</h2>
<p>静态转换就是强制转换
Q动态转换是什么？</p>
<h2 id="_3">数据类型</h2>
<p>用的少的都不是很会用欸
枚举类型（Enumeration Types）：</p>
<p>enum：用于定义一组命名的整数常量。
指针类型（Pointer Types）：</p>
<p>type*：用于表示指向类型为type的对象的指针。
数组类型（Array Types）：</p>
<p>type[]或type[size]：用于表示具有相同类型的元素组成的数组。
结构体类型（Structure Types）：</p>
<p>struct：用于定义包含多个不同类型成员的结构。
类类型（Class Types）：</p>
<p>class：用于定义具有属性和方法的自定义类型。
共用体类型（Union Types）：</p>
<p>union：用于定义一种特殊的数据类型，它可以在相同的内存位置存储不同的数据类型。</p>
<h2 id="_4">变量作用域</h2>
<p>明天再接着学</p>
              
            </div>
          </div><footer>
    <div class="rst-footer-buttons" role="navigation" aria-label="Footer Navigation">
        <a href="../01demo/" class="btn btn-neutral float-left" title="基本语法"><span class="icon icon-circle-arrow-left"></span> Previous</a>
        <a href="../../%E6%93%8D%E4%BD%9C%E7%B3%BB%E7%BB%9F/OS/" class="btn btn-neutral float-right" title="os">Next <span class="icon icon-circle-arrow-right"></span></a>
    </div>

  <hr/>

  <div role="contentinfo">
    <!-- Copyright etc -->
      <p>Copyright &copy; 2023 - 2024 zhaoxin</p>
  </div>

  Built with <a href="https://www.mkdocs.org/">MkDocs</a> using a <a href="https://github.com/readthedocs/sphinx_rtd_theme">theme</a> provided by <a href="https://readthedocs.org">Read the Docs</a>.
</footer>
          
        </div>
      </div>

    </section>

  </div>

  <div class="rst-versions" role="note" aria-label="Versions">
  <span class="rst-current-version" data-toggle="rst-current-version">
    
    
      <span><a href="../01demo/" style="color: #fcfcfc">&laquo; Previous</a></span>
    
    
      <span><a href="../../%E6%93%8D%E4%BD%9C%E7%B3%BB%E7%BB%9F/OS/" style="color: #fcfcfc">Next &raquo;</a></span>
    
  </span>
</div>
    <script>var base_url = '../../..';</script>
    <script src="../../../js/theme_extra.js" defer></script>
    <script src="../../../js/theme.js" defer></script>
      <script src="../../../search/main.js" defer></script>
    <script defer>
        window.onload = function () {
            SphinxRtdTheme.Navigation.enable(true);
        };
    </script>

</body>
</html>
